Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[misc] Fix invalid whitespace character causing inability to parse moment.js #3853

Closed
wants to merge 1 commit into from

Conversation

shmendo
Copy link

@shmendo shmendo commented Mar 21, 2017

Please see the attached screenshots from Chrome 56.0.2924.87.

It appears there is an invalid whitespace character in the source code in src/lib/locale/set.js. I removed that character and added a standard space which appears to have fixed the problem. I still ran the tests and confirmed all passed.

This can be reproduced by adding the following index.html file in the repo at the root of the project and loading it in chrome.

I should note that I put the whitespace replacement into the file referenced above, then ran grunt release and confirmed that it did indeed fix the issue.

# index.html
<html>
<head>
  <script src="moment.js"></script>
</head>
<body>
</body>
</html>

screen shot 2017-03-20 at 7 52 21 pm

screen shot 2017-03-20 at 7 52 41 pm

Copy link

@jesstelford jesstelford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the same issue we were having, which was breaking all our builds (as moment is a dep of a dep, we can't roll back... The dark side of semver ranges). Thanks for tracking it down!

cc @ichernev

@shmendo shmendo changed the title Fixed issue with an invalid whitespace character Fixed invalid whitespace character causing inability to parse moment.js Mar 21, 2017
@shmendo
Copy link
Author

shmendo commented Mar 21, 2017

Thanks guys! After looking at some open issues I may try and help out in that respect as time allows. Appreciate the warm welcome :)

@ichernev
Copy link
Contributor

I'll cut a release in around 5hrs

@shmendo
Copy link
Author

shmendo commented Mar 21, 2017

YTMND @ichernev

@ichernev
Copy link
Contributor

Merged in 863f861

@ichernev ichernev changed the title Fixed invalid whitespace character causing inability to parse moment.js [misc] Fix invalid whitespace character causing inability to parse moment.js Mar 21, 2017
@ichernev ichernev closed this Mar 21, 2017
ichernev added a commit that referenced this pull request Mar 21, 2017
[misc] Fix invalid whitespace character causing inability to parse moment.js
@ichernev
Copy link
Contributor

Enjoy 2.18.1

@icambron icambron mentioned this pull request Mar 22, 2017
@wimrijnders
Copy link

wimrijnders commented Mar 28, 2017

Hi guys,

Has this fix been released yet? We're getting loads of issues about this in our project graph3d.

Edit: Never mind. I just figured out if we do a release ourselves, the issue will be fixed.

mojoaxel added a commit to almende/vis that referenced this pull request Mar 28, 2017
bradh pushed a commit to almende/vis that referenced this pull request Mar 28, 2017
mojoaxel added a commit to visjs/vis-charts that referenced this pull request Jul 12, 2019
mojoaxel added a commit to visjs/vis-charts that referenced this pull request Jul 28, 2019
mojoaxel added a commit to visjs/vis-charts that referenced this pull request Jul 28, 2019
mojoaxel added a commit to visjs/vis-charts that referenced this pull request Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants